package com.platform.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.ApiCommonwealMapper;
import com.platform.entity.CommonwealVo;

/**
 * 公益活动表Service实现类
 *
 * @author czj
 * @email 729618941@qq.com
 * @date 2018-11-01 09:42:49
 */
@Service
public class ApiCommonwealService {

    @Autowired
    private ApiCommonwealMapper commonwealDao;
    
    public CommonwealVo queryObject(Integer id) {
        return commonwealDao.queryObject(id);
    }

    public List<CommonwealVo> queryList(Map<String, Object> map) {
        return commonwealDao.queryList(map);
    }

    public int queryTotal(Map<String, Object> map) {
        return commonwealDao.queryTotal(map);
    }

    public int save(CommonwealVo commonweal) {
        return commonwealDao.save(commonweal);
    }

    public int update(CommonwealVo commonweal) {
        return commonwealDao.update(commonweal);
    }

    public int delete(Integer id) {
        return commonwealDao.delete(id);
    }

    public int deleteBatch(Integer[] ids) {
        return commonwealDao.deleteBatch(ids);
    }
}
